home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15728 < prev    next >
Encoding:
Text File  |  1996-08-05  |  947 b   |  39 lines

  1. Path: mn5.swip.net!news
  2. From: erik.gahlin@mailbox.swipnet.se (Erik Gahlin)
  3. Newsgroups: comp.lang.c
  4. Subject: How can I speed up graphics.
  5. Date: Sat, 20 Apr 1996 21:11:32 GMT
  6. Organization: SWS
  7. Message-ID: <4ldbf6$5hs@mn5.swip.net>
  8. Reply-To: erik.gahlin@mailbox.swipnet.se
  9. NNTP-Posting-Host: dialup106-3-9.swipnet.se
  10. NNTP-Posting-User: 8c4bb1b05dfdac079bbc9e08229f7b05
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. I am writing a program i C (Borlands Turbo C 1.0 for DOS).
  14. I need to speed up the graphic a bit (Maybe ten times!).
  15.  
  16. This is how I have written the function plot.
  17.  
  18. #include<dos.h>
  19. void plot (int x,int y,int z)
  20. {
  21. union REGS r,s;
  22. r.h.ah=12;
  23. r.x.dx=y;
  24. r.x.cx=x;
  25. r.h.al=z;
  26. r.h.bh=0;
  27. int86(0x10,&r,&s);
  28. }
  29.  
  30. I am using video mode 18 (640x480x16). Anybody have a fast routine 
  31. that will speed up the graphic. Not using any complicated
  32. EGAVGABGI... bla.. bla driver. 
  33.  
  34. If anybody have a source code for a new plot please let me know.
  35.  
  36.  Erik Gahlin.
  37.  
  38.  
  39.